package io.renren.modules.zhaopin.service.impl;

import io.renren.modules.zhaopin.dao.BaseWorkExperienceDao;
import io.renren.modules.zhaopin.entity.BaseWorkExperienceEntity;
import io.renren.modules.zhaopin.service.BaseWorkExperienceService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("baseWorkExperienceService")
public class BaseWorkExperienceServiceImpl extends ServiceImpl<BaseWorkExperienceDao, BaseWorkExperienceEntity> implements BaseWorkExperienceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BaseWorkExperienceEntity> page = this.page(
                new Query<BaseWorkExperienceEntity>().getPage(params),
                new QueryWrapper<BaseWorkExperienceEntity>()
        );

        return new PageUtils(page);
    }

}